package com.czk.bootlettuce.utils;

import java.util.Calendar;
import java.util.Date;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/12/17 16:12
 */
public class TimeEndUtil {
    /**
     * 获取今天结束时间
     *
     * @return
     */
    public static Date getTodayEndTime() {
        Calendar calendar = Calendar.getInstance();
        calendar.set(Calendar.HOUR_OF_DAY, 23);
        calendar.set(Calendar.MINUTE, 59);
        calendar.set(Calendar.SECOND, 59);
        calendar.set(Calendar.MILLISECOND, 999);
        return calendar.getTime();
    }
}
